<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 - 页面未找到 | 极客终端</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/animations.css">
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/firacode@6.2.0/distr/fira_code.css">
    <style>
        .error-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            height: 100vh;
            text-align: center;
            padding: 2rem;
        }
        
        .error-code {
            font-size: 8rem;
            color: var(--accent-color);
            font-weight: bold;
            text-shadow: 0 0 10px var(--accent-color);
            margin-bottom: 1rem;
            position: relative;
        }
        
        .error-code::after {
            content: "ERROR";
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            color: rgba(255, 0, 0, 0.5);
            z-index: -1;
            animation: glitchText 0.5s infinite;
        }
        
        .error-message {
            font-size: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .error-details {
            font-family: var(--font-mono);
            background-color: rgba(0, 0, 0, 0.3);
            padding: 1rem;
            border: 1px solid var(--accent-color);
            border-radius: 4px;
            max-width: 600px;
            margin: 0 auto;
            text-align: left;
            overflow: auto;
        }
        
        .terminal-text {
            color: var(--accent-color);
            margin-bottom: 0.5rem;
        }
        
        .back-link {
            margin-top: 2rem;
            color: var(--accent-color);
            text-decoration: none;
            border: 1px solid var(--accent-color);
            padding: 0.5rem 1rem;
            transition: all 0.3s ease;
            display: inline-block;
        }
        
        .back-link:hover {
            background-color: rgba(0, 247, 255, 0.1);
            box-shadow: 0 0 10px var(--accent-color);
        }
        
        @keyframes glitchText {
            0% { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 2px); }
            20% { clip-path: inset(92% 0 1% 0); transform: translate(1px, -3px); }
            40% { clip-path: inset(43% 0 1% 0); transform: translate(-1px, 4px); }
            60% { clip-path: inset(25% 0 58% 0); transform: translate(3px, -2px); }
            80% { clip-path: inset(54% 0 7% 0); transform: translate(-3px, 2px); }
            100% { clip-path: inset(58% 0 43% 0); transform: translate(2px, -4px); }
        }
    </style>
</head>
<body>
    <!-- 数字雨背景 -->
    <canvas id="matrix-rain"></canvas>
    
    <!-- 网格背景 -->
    <div class="grid-overlay"></div>
    
    <div class="error-container">
        <div class="error-code">404</div>
        <div class="error-message">页面未找到</div>
        
        <div class="error-details">
            <div class="terminal-text">> 错误代码: 0x00000194</div>
            <div class="terminal-text">> 状态: 资源不存在</div>
            <div class="terminal-text">> 位置: 未知区域</div>
            <div class="terminal-text">> 系统正在扫描可能的路径...</div>
            <div class="terminal-text">> 扫描完成: 无匹配结果</div>
            <div class="terminal-text">> 建议: 返回安全区域</div>
        </div>
        
        <a href="index.html" class="back-link">返回主页</a>
    </div>
    
    <!-- 故障效果层 -->
    <div class="glitch-overlay"></div>
    
    <!-- 扫描线效果 -->
    <div class="scan-line"></div>
    
    <!-- 脚本 -->
    <script src="js/matrix.js"></script>
    <script src="js/effects.js"></script>
    <script>
        // 触发额外的故障效果
        document.addEventListener('DOMContentLoaded', () => {
            // 如果全局效果系统存在
            if (window.effectsSystem) {
                // 每隔一段时间触发故障效果
                setInterval(() => {
                    window.effectsSystem.triggerGlitch();
                }, 2000);
            }
        });
    </script>
</body>
</html>